package com.ruicar.afs.cloud.apply.contract.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.apply.common.entity.ApplyContractInfo;
import com.ruicar.afs.cloud.apply.contract.condition.ContractCondition;
import com.ruicar.afs.cloud.apply.pre.loan.condition.ContractMngCondition;
import com.ruicar.afs.cloud.apply.pre.loan.condition.OrderOprCondition;
import com.ruicar.afs.cloud.apply.pre.loan.vo.ContractMngLoanAppVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 放款申请-订单管理
 *
 * @author 耿继辉
 */
public interface ContractMngMapper {

    /**
     * 多条件查询
     *
     * @param page
     * @param condition
     * @return
     */
    IPage<ContractMngLoanAppVO> getMngLoanOrderInfo(@Param("query") ContractMngCondition condition, Page page);


    /**
     * 获取合同信息
     *
     * @param condition
     * @return
     */
    ApplyContractInfo getContractInfo(@Param("query") OrderOprCondition condition);


    /**
     * 更新客户信息
     *
     * @param contractInfo
     * @return
     */
    Boolean updateContractInfo(@Param("update") ApplyContractInfo contractInfo);

    IPage<List<ApplyContractInfo>> getGpsAgainInfo(@Param("query") ContractCondition condition, Page page);
}
